﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration.Install;
using System.ComponentModel;
using System.IO;

namespace MultiWallpaperManager
{
	[RunInstaller(true)]
	class ProgramInstaller : Installer
	{
		public override void Uninstall(System.Collections.IDictionary savedState)
		{
			base.Uninstall(savedState);

			string dataFolder = Environment.SpecialFolder.ProgramFiles + "\\MultiWallpaperManager";

			try
			{
				Directory.Delete(dataFolder, true);
			}
			catch (Exception)
			{
			//	throw new InstallException("Failed to delete folder");
			}
		}
	}
}
